<script type="text/javascript">
function goback()
{
	location.href = "<?php echo base_url()."index.php/products/categories"; ?>"
}
</script>
			
			<div class="block">
			
				<div class="block_head">
					<div class="bheadl"></div>
					<div class="bheadr"></div>
					
					<h2>Nuova Categoria di Prodotti</h2>
					<ul class="tabs">
						<li><?php echo anchor('products/categories','Torna alle Categorie'); ?></li>
					</ul>
				</div>		<!-- .block_head ends -->
				
				<div class="block_content">
					

					<?php
						if (isset($_SESSION['user_message'])) {
							echo "<div class='message success'>".$_SESSION['user_message'] . "</div>";
							unset($_SESSION['user_message']);
						}
					?>

					<?php echo form_open('products/category_new'); ?>

					<p>
						<label>Nome:</label><br/>
						<input type="text" class="text small" name="nome" value="<?php echo set_value('nome'); ?>"/> 
						<?php echo form_error('nome'); ?>
					</p>
					<p>
						<label>Descrizione:</label><br/>
						<textarea class="wysiwyg" name="descrizione"><?php echo set_value('descrizione');?></textarea> 
						<?php echo form_error('descrizione'); ?>
					</p>
					<p>
						<input type="checkbox" class="checkbox" checked="<?php echo set_value('visibile');?>" id="visibile" name="visibile"  /> <label for="visibile">Nascosto</label> 
					</p>
					<hr/>
					<p>
						<input type="submit" class="submit small" value="Salva" />
						<input type="button" class="submit small" value="Annulla" onclick="goback()" />
					</p>
					<?php form_close(); ?>
					
				</div>		<!-- .block_content ends -->
				
				<div class="bendl"></div>
				<div class="bendr"></div>
			</div>		<!-- .block ends -->
			